package com.aishua.fire.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.aishua.fire.jpa.entity.Accountteam;
import com.aishua.fire.mapper.dto.AteamPermTeamSearchDto;
import com.aishua.fire.mapper.dto.PermteamAllowedDto;

@Component
public interface AccountteamMapper {

	/**
	 * 查询账户组表的name和id
	 * @param pram
	 */
	List<Accountteam> findIdAndName();
	
	
	/**
	 * 查询账户组表的name和id(过滤后)
	 * @param pram
	 */
	List<Accountteam> findFilterIdAndName(Long accountId);
	
	//查询角色列表
//	List<AteamPermTeamSearchDto> getAteamList();
	
	//查询accountteamList
	List<AteamPermTeamSearchDto> getAccountteamList(@Param(value="accountteamName") String accountteamName);


	List<PermteamAllowedDto> getPermteamListByAteamId(Long accountteamId);
}
